package com.zxt.content.job.scheduled.strategy;

/**
 * 推送文案类型枚举
 *
 * @author zxt
 */
public enum PushCopywritingTypeEnum {
    EMAIL((byte) 1, "邮箱推送"),
    WX_PUBLIC((byte) 2, "微信公众号推送");

    private final Byte value;
    private final String desc;

    public Byte getValue() {
        return this.value;
    }

    public String getDesc() {
        return this.desc;
    }

    public boolean equal(Byte val) {
        return val == null ? false : val.byteValue() == this.value;
    }

    private PushCopywritingTypeEnum(Byte value, final String desc) {
        this.value = value;
        this.desc = desc;
    }
}

